<?php $this->calculatePageNumber(); 
if($this->getRecordCount() > 0):
?>
<div<?php echo $this->getAttributeHtml(); ?>>
    <div class="information">
        <span><?php echo $this->getInformationText(); ?></span>
    </div>
    <div class="sizes">
        <span><?php echo $this->getPageSizeText(); ?></span>
        <select onchange="javascript:location.href=this.value">
<?php foreach($this->getPageSizes() as $size): ?>
            <option value="<?php echo $this->getPageSizeUrl($size); ?>"<?php echo $this->isCurrentSize($size)? ' selected="selected"': ''?>>
                <?php echo $size; ?>
            </option>
<?php endforeach; ?>
        </select>
    </div>
<?php if($this->getPageCount() > 1): ?>
    <div class="pager">
        <ul>
<?php if(!$this->isFirstPage()): ?>
            <li class="first">
                <a href="<?php echo $this->getPageIndexUrl(1) ?>">
                    <span><?php echo $this->getFirstPageText(); ?></span>
                </a>
            </li>
            <li class="prev">
                <a href="<?php echo $this->getPageIndexUrl($this->getPageIndex() - 1) ?>">
                    <span><?php echo $this->getPrevPageText(); ?></span>
                </a>
            </li>
<?php endif; ?>
<?php for($i = $this->getStartPage(); $i <= $this->getEndPage(); $i++):?>
    <?php if($this->isCurrentIndex($i)): ?>
            <li class="current"><span><?php echo $this->getPageIndexText($i); ?></span></li>
    <?php else: ?>
            <li><a href="<?php echo $this->getPageIndexUrl($i); ?>"><?php echo $this->getPageIndexText($i); ?></a></li>
    <?php endif ?>
<?php endfor; ?>
<?php if(!$this->isLastPage()): ?>
            <li class="next">
                <a href="<?php echo $this->getPageIndexUrl($this->getPageIndex() + 1) ?>">
                    <span><?php echo $this->getNextPageText(); ?></span>
                </a>
            </li>
            <li class="last">
                <a href="<?php echo $this->getPageIndexUrl($this->getPageCount()) ?>">
                    <span><?php echo $this->getLastPageText(); ?></span>
                </a>
            </li>
<?php endif; ?>
        </ul>
    </div>
<?php endif; //if($this->pageCount() > 1)?>
    <input type="hidden" name="pagesize" value="<?php echo $this->getPageSize() ?>"/>
</div>
<?php endif; ?>